package com.han.spring.mvc._0143_Handler_Methods;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
* @author hanpeng
* @version 创建时间：2020年8月2日 上午8:59:22
* @ClassName 类名称
* @Description 类描述
*/
@Controller(value="HandlerMethodController")
public class HandlerMethodController {
	
	@RequestMapping("/{category}/{ByCriteria}")
	public String index(@PathVariable(name="category",required=true) String name) {
		System.out.println("HandlerMethodController");
		return "index";
	}
	/*@RequestMapping("/index.html")
	public String index1(@MatrixVariable String name) {
		System.out.println("HandlerMethodController");
		return "index";
	}
	@RequestMapping("/index.html")
	public String index2(@RequestParam(defaultValue="",name="",required=true,value="") String name) {
		System.out.println("HandlerMethodController");
		return "index";
	}
	@RequestMapping("/index.html")
	public String index3( String  name) {
		System.out.println("HandlerMethodController");
		return "index";
	}*/
}
